﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 泛型约束Test4
{
    class Program
    {
        static void Main(string[] args)
        {
            GenericClass<Test, Test2> c = new GenericClass<Test, Test2>();

        }
    }


    class Test : Main, Interface1
    {

    }

    class Test2
    {
        //public Test2()
        //{

        //}
    }

    class Main { }
    interface Interface1
    {

    }

    class GenericClass<T, U> where T : Main, Interface1
    where U : new()
    {

    }



}
